package com.share.common.utils;

public class AlphaUtil {

    /**
     * 首字母转小写
     *
     * @param str
     * @return
     */
    public static String firstCharToLow(String str) {
        if (str == null) {
            return null;
        }

        char c = str.charAt(0);
        if (c >= 'A' && c <= 'Z') {
            return ((char)((int)c + 32)) + str.substring(1);
        } else {
            return str;
        }
    }

    public static void main(String[] args) {
        System.out.println(firstCharToLow("Afd"));
    }
}
